package com.huluobo.h3kotlinproject.base

import com.huluobo.h3kotlinproject.db.AppDatabase
import com.huluobo.h3kotlinproject.db.DatabaseUtil
import com.huluobo.h3kotlinproject.net.ApiService
import com.huluobo.h3kotlinproject.net.RetrofitManager

/**
 *  Created by LC on 2023/10/17.
 */
abstract class BaseRepo {
    fun getService(): ApiService = RetrofitManager.getRetrofit().create(ApiService::class.java)
    fun getDb(): AppDatabase = DatabaseUtil.getDefaultDb()
}